|
|
 |
|
|
|
|
Sub Proc2()
Dim strName As String
strName = "Bill Gates"
frmDebug1.Print "We Are Now In Proc2()"
Stop
frmDebug1.Print strName
Call Proc3
End Sub |
|
|
|
 |
|
|
|
|
TIP Be sure to remove Stop statements from your code before making an EXE file, or you can surround the Stop statements with conditional compilation (#if/#endif) statements so theyre not included in the compiled program. |
|
|
|
|
|
|
|
|
Many times in an application, you can watch the value inside of a variable or property. Visual Basic lets you specify which variables you want to watch. These are placed in a special Watch pane above the Immediate window. |
|
|
|
|
| Adding Watch Variables 1. Stop the application. 2. Go to the Form_Load() procedure in Debug1.frm. 3. Click the gintValue variable and select Debug, Add Watch from the Visual Basic menu. The gintValue variable has already been added to the Expression text box. 4. Choose the (All Modules) option from the Modules: combo box in the Context frame shown in Figure 16.9. This tells Visual Basic to watch the variable named gintValue through all of the modules. |
|
|
|